package Modele;

import java.util.ArrayList;

public class HerosCarte extends Contenu {

	private Heros heros;
	private Armee armee;
	private Equipement equipement;
	private String image;
	private int deplacement;
	private int joueur;
	int x;
	int y;
	
	public HerosCarte(Heros h, int j) {
		this.heros = h;
		this.equipement = null;
		this.image = null;
		this.x = 0;
		this.y = 0;
		this.joueur = j;
		this.deplacement = h.getDeplacement();
		switch (h.getOrigine()) {
			case 1 :
				Monstre hallebardier = Monstre.getMonstre("Hallebardier");
				Monstre grandArbaletrier = Monstre.getMonstre("Grand Arbaletrier");
				Monstre griffonRoyal = Monstre.getMonstre("Griffon Royal");
				Monstre paladin = Monstre.getMonstre("Paladin");
				Monstre zelote = Monstre.getMonstre("Zelote");
				Monstre champion = Monstre.getMonstre("Champion");
				Monstre archange = Monstre.getMonstre("Archange");
				Squad s1 = new Squad(hallebardier, 50);
				Squad s2 = new Squad(grandArbaletrier, 20);
				Squad s3 = new Squad(griffonRoyal, 50);
				Squad s4 = new Squad(paladin, 20);
				Squad s5 = new Squad(zelote, 50);
				Squad s6 = new Squad(champion, 20);
				Squad s7 = new Squad(archange, 20);
				ArrayList<Squad> as = new ArrayList<Squad>();
				as.add(s1);
				as.add(s2);
				as.add(s3);
				as.add(s4);
				as.add(s5);
				as.add(s6);
				as.add(s7);
				this.armee = new Armee(as);
				break;
		}
	}
	
	public int getX() {
		return this.x;
	}
	
	public int getY() {
		return this.y;
	}
	
	public String getImage() {
		return this.image;
	}
	
	public Heros getHeros() {
		return this.heros;
	}
	
	public Armee getArmee() {
		return this.armee;
	}
	
	public Equipement getEquipement() {
		return this.equipement;
	}
	
	public int getDeplacement() {
		return this.deplacement;
	}
	
	public int getJoueur() {
		return this.joueur;
	}
	
	public void setDeplacement(int d) {
		this.deplacement = d;
	}
	
	public void setImage(String s) {
		this.image = s;
	}
	
	public void setX(int x) {
		this.x = x;
	}
	
	public void setY(int y) {
		this.y = y;
	}
	
	public String toString() {
		return "(" + this.x + " - " + this.y + ")" + this.heros.toString();
	}
}
